HipTimer

Undocumented in source.

Constructors

this
this(string name, float durationSeconds, HipTimerType type, bool loops)

Call addHandler after creation for adding what to do

Members

Functions

addHandler
HipTimer addHandler(void delegate() handler)
Undocumented in source. Be warned that the author may not have intended to support it.
addHandler
HipTimer addHandler(void delegate(float progress) handler)
Undocumented in source. Be warned that the author may not have intended to support it.
addHandler
HipTimer addHandler(void delegate(float progress, uint loopCount) handler)
Undocumented in source. Be warned that the author may not have intended to support it.
forceFinish
void forceFinish()
Undocumented in source. Be warned that the author may not have intended to support it.
getDuration
float getDuration()
Undocumented in source. Be warned that the author may not have intended to support it.
getName
string getName()
Undocumented in source. Be warned that the author may not have intended to support it.
getProgress
float getProgress()
Undocumented in source. Be warned that the author may not have intended to support it.
loopRestart
void loopRestart()
Undocumented in source. Be warned that the author may not have intended to support it.
pause
void pause()
Undocumented in source. Be warned that the author may not have intended to support it.
play
HipTimer play()
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
setProperties
void setProperties(string name, float durationSeconds, HipTimerType type, bool loops)

Perfect function for making a timer pool

stop
void stop()
Undocumented in source. Be warned that the author may not have intended to support it.
tick
bool tick(float dt)

Returns wether it has finished

Variables

accumulator
float accumulator;
Undocumented in source.
deltaTime
float deltaTime;
Undocumented in source.
durationSeconds
float durationSeconds;
Undocumented in source.
handlers
void delegate(float progress, uint loopCount)[] handlers;
Undocumented in source.
isRunning
bool isRunning;
Undocumented in source.
loopCount
uint loopCount;
Undocumented in source.
loops
bool loops;
Undocumented in source.
name
string name;

Enforce naming for making debugging easier

type
HipTimerType type;
Undocumented in source.

Meta